<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>简化操作</title>
	</head>
	<body>
		<div>
			<h1>简化操作语法</h1>
		</div>
		
		<script src="../js/axios.js"></script>
		<script src="../js/vue.js"></script>
		<script>
			axios.defaults.baseURL="http://localhost:8080/vue"
			//2、定义函数
			async function findAll(){
				let {data:result} = await axios.get("/findAll")
				console.log(result)
			}
			//3、调用函数
			findAll()
		</script>
	</body>
</html>
